\hypertarget{b__device_8h}{}\section{b\+\_\+device.\+h File Reference}
\label{b__device_8h}\index{b\+\_\+device.\+h@{b\+\_\+device.\+h}}
{\ttfamily \#include \char`\"{}b\+\_\+config.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}b\+\_\+device\+\_\+list.\+h\char`\"{}}\newline
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structb_c_m_d___erase__t}{b\+C\+M\+D\+\_\+\+Erase\+\_\+t}}
\item 
struct \mbox{\hyperlink{structb_c_m_d___struct__t}{b\+C\+M\+D\+\_\+\+Struct\+\_\+t}}
\item 
struct \mbox{\hyperlink{structb_driver_interface__t}{b\+Driver\+Interface\+\_\+t}}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group___d_e_v_i_c_e___exported___types_definitions_gac84c032de111b645587293ce1373b668}{B\+\_\+\+D\+E\+V\+I\+C\+E\+\_\+\+R\+EG}}(dev,  driver,  desc)
\item 
\#define \mbox{\hyperlink{group___d_e_v_i_c_e___exported___types_definitions_gac84c032de111b645587293ce1373b668}{B\+\_\+\+D\+E\+V\+I\+C\+E\+\_\+\+R\+EG}}(dev,  driver,  desc)~dev,
\item 
\#define \mbox{\hyperlink{group___d_e_v_i_c_e___exported___defines_ga04dfad1d8e6733a6441d2a2741e4b274}{B\+D\+E\+V\+I\+C\+E\+\_\+\+E\+R\+R\+OR}}~1
\item 
\#define \mbox{\hyperlink{group___d_e_v_i_c_e___ctl_c_m_d___defines_ga96464751587c9b064a2c7cee9881402a}{b\+C\+M\+D\+\_\+\+E\+R\+A\+SE}}~0
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{group___d_e_v_i_c_e___exported___types_definitions_ga1793ffbad2239c36ab43090841cf9fda}{b\+Device\+Name\+\_\+t}} \{ \mbox{\hyperlink{group___d_e_v_i_c_e___exported___types_definitions_gga1793ffbad2239c36ab43090841cf9fdaab886891c64c883dc4b308e9b165fa571}{b\+D\+E\+V\+\_\+\+M\+A\+X\+\_\+\+N\+UM}}
 \}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{group___d_e_v_i_c_e___exported___functions_ga404e753d491d3b3e4c6fba215d191fa7}{b\+Device\+Init}} ()
\begin{DoxyCompactList}\small\item\em Device Initialize. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group___d_e_v_i_c_e___exported___functions_gac022bd943e28b18b2dce587207c25788}{b\+Device\+Open}} (uint8\+\_\+t no)
\item 
int \mbox{\hyperlink{group___d_e_v_i_c_e___exported___functions_ga580d17c32a7382f586cc11ba84160e09}{b\+Device\+Read}} (int no, uint32\+\_\+t address, uint8\+\_\+t $\ast$pdata, uint16\+\_\+t len)
\item 
int \mbox{\hyperlink{group___d_e_v_i_c_e___exported___functions_ga7b100bfb070e715961c0bfe2da20d6be}{b\+Device\+Write}} (int no, uint32\+\_\+t address, uint8\+\_\+t $\ast$pdata, uint16\+\_\+t len)
\item 
int \mbox{\hyperlink{group___d_e_v_i_c_e___exported___functions_gaf8441490c33a1dfa5e56b510d332df29}{b\+Device\+Close}} (int no)
\item 
int \mbox{\hyperlink{group___d_e_v_i_c_e___exported___functions_gac8137793df6d7d8399128f4997cb0914}{b\+Device\+Ctl}} (int no, uint8\+\_\+t cmd, void $\ast$param)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
!

\begin{DoxyVersion}{Version}
v0.\+0.\+1 
\end{DoxyVersion}
\begin{DoxyDate}{Date}
2019/06/05 
\end{DoxyDate}
\begin{DoxyAuthor}{Author}
Bean(\href{mailto:notrynohigh@outlook.com}{\tt notrynohigh@outlook.\+com})
\end{DoxyAuthor}
\begin{DoxyAttention}{Attention}

\end{DoxyAttention}
Copyright (c) 2019 Bean

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \char`\"{}\+Software\char`\"{}), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions\+:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

T\+HE S\+O\+F\+T\+W\+A\+RE IS P\+R\+O\+V\+I\+D\+ED \char`\"{}\+A\+S I\+S\char`\"{}, W\+I\+T\+H\+O\+UT W\+A\+R\+R\+A\+N\+TY OF A\+NY K\+I\+ND, E\+X\+P\+R\+E\+SS OR I\+M\+P\+L\+I\+ED, I\+N\+C\+L\+U\+D\+I\+NG B\+UT N\+OT L\+I\+M\+I\+T\+ED TO T\+HE W\+A\+R\+R\+A\+N\+T\+I\+ES OF M\+E\+R\+C\+H\+A\+N\+T\+A\+B\+I\+L\+I\+TY, F\+I\+T\+N\+E\+SS F\+OR A P\+A\+R\+T\+I\+C\+U\+L\+AR P\+U\+R\+P\+O\+SE A\+ND N\+O\+N\+I\+N\+F\+R\+I\+N\+G\+E\+M\+E\+NT. IN NO E\+V\+E\+NT S\+H\+A\+LL T\+HE A\+U\+T\+H\+O\+RS OR C\+O\+P\+Y\+R\+I\+G\+HT H\+O\+L\+D\+E\+RS BE L\+I\+A\+B\+LE F\+OR A\+NY C\+L\+A\+IM, D\+A\+M\+A\+G\+ES OR O\+T\+H\+ER L\+I\+A\+B\+I\+L\+I\+TY, W\+H\+E\+T\+H\+ER IN AN A\+C\+T\+I\+ON OF C\+O\+N\+T\+R\+A\+CT, T\+O\+RT OR O\+T\+H\+E\+R\+W\+I\+SE, A\+R\+I\+S\+I\+NG F\+R\+OM, O\+UT OF OR IN C\+O\+N\+N\+E\+C\+T\+I\+ON W\+I\+TH T\+HE S\+O\+F\+T\+W\+A\+RE OR T\+HE U\+SE OR O\+T\+H\+ER D\+E\+A\+L\+I\+N\+GS IN T\+HE S\+O\+F\+T\+W\+A\+RE. 